package com.hksj.am.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fjt
 * @data 2024/11/6 18:44
 * @describe
 */
@ColumnWidth(25)
@ContentRowHeight(20)
@HeadRowHeight(30)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AlarmDetailExcelVO implements Serializable {

    private static final long serialVersionUID = -1719030128053241719L;

    @ExcelProperty("设备位置")
    private String deviceLocation;

    @ExcelProperty("设备名称")
    private String deviceName;

    @ExcelProperty("报警值")
    private String value;

    @ExcelProperty("报警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
